from selenium.webdriver.common.by import By

from pom.baseActivity import BaSeActivity

class LoginActivity(BaSeActivity):

    _token_area = (By.ID,'org.cnodejs.android.md:id/edt_access_token')
    _submit_btn = (By.ID,'org.cnodejs.android.md:id/btn_login')
    _toast = (By.XPATH,'//android.widget.Toast')

    @property
    def token_area(self):
        return self.driver.find_element(*self._token_area)

    @property
    def login_btn(self):
        return self.driver.find_element(*self._submit_btn)

